@extends('layouts.home')
@section('head_info')
<title>{{$data->art_title}}</title>
<meta name="keywords" content="{{$data->art_tag}}" />
<meta name="description" content="{{$data->art_description}}" />
@stop
@section('style')
<link href="{{asset('resources/assets/home/css/new.css')}}" rel="stylesheet">
@stop
@section('content')
<article class="blogs">
  <h1 class="t_nav">
    <span>
      您当前的位置：
      <a href="{{url('/')}}">首页</a>&nbsp;&gt;&nbsp;
      @if($cate)
        <a href="{{url('cate').'/'.$cate->cate_id}}">{{$cate->cate_name}}</a>&nbsp;&gt;&nbsp;
        <a href="{{url('cate').'/'.$data->cate_id}}">{{$data->cate_name}}</a>
      @else
        <a href="{{url('cate').'/'.$data->cate_id}}">{{$data->cate_name}}</a>
      @endif
    </span>
    <a href="{{url('/')}}" class="n1">网站首页</a>
    <a href="{{url('cate').'/'.$data->cate_id}}" class="n2">{{$data->cate_name}}</a>
  </h1>
  <div class="index_about">
    <h2 class="c_titile">{{$data->art_title}}</h2>
    <p class="box_c"><span class="d_time">发布时间：{{date('Y-m-d H:i:s',$data->art_time)}}</span><span>编辑：{{$data->art_editor}}</span><span>查看次数：{{$data->art_view}}</span></p>
    <ul class="infos">
      {!!$data->art_content!!}
    </ul>
    <div class="keybq">
    <p><span>关键字词</span>：{{$data->art_tag}}</p>
    
    </div>
    <div class="ad"> </div>
    <div class="nextinfo">
      <p>上一篇：
        @if($turnPage['pre'])
        <a href="{{url('art').'/'.$turnPage['pre']->art_id}}">{{$turnPage['pre']->art_title}}</a>
        @else
          <span>上面没有了~</span>
        @endif
      </p>
      <p>下一篇：
      @if($turnPage['next'])
        <a href="{{url('art').'/'.$turnPage['next']->art_id}}">{{$turnPage['next']->art_title}}</a>
        @else
          <span>下面没有了~</span>
        @endif
      </p>
    </div>
    <div class="otherlink">
      <h2>相关文章</h2>
      <ul>
        @foreach($aboutArt as $art)
        <li><a href="{{url('art').'/'.$art->art_id}}" title="{{$art->art_title}}">{{$art->art_title}}</a></li>
        @endforeach
      </ul>
    </div>
  </div>
@stop